package com.tiantang.mybatis.helloworld.domain;

import java.io.Serializable;

/**
 * 
 * @description：功能描述 员工实体类 ，对应表t_employee
 * @author： liujinkun
 * 创建时间： 2018年2月2日
 * @version：1.0
 * Copyright (c) 2018年
 */
public class Employee implements Serializable {

	private static final long serialVersionUID = 1L;

	public Employee(String firstName, String lastName, String gender, String email) {
		super();
		this.firstName = firstName;
		this.lastName = lastName;
		this.gender = gender;
		this.email = email;
	}

	public Employee() {
		super();
	}
	
	private Long id;//数据表主键
	
	private String firstName;//员工姓
	
	private String lastName;//员工名
	
	private String gender;//性别 0男，1女
	
	private String email;//邮箱
	
	private Department department;//所属部门
	
	private Long departmentId;//所属部门id

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	@Override
	public String toString() {
		return "Employee [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", gender=" + gender
				+ ", email=" + email + ", department=" + department + ", departmentId=" + departmentId + "]";
	}

	
}
